<template>
	<view class="content">
        数字：{{piniaIndex.num}}
		<button @click="piniaIndex.countHanderl()">点击增加</button>
		<button @click="openPopup({
			title: '标题',
			content: '内容'
		})">打开弹窗</button>
		
		<ConfirmPopup ref="comfirmPopupRef" v-if="popupShow" />
	</view>
</template>

<script setup>
	import { ref } from 'vue';
	import { onLoad } from '@dcloudio/uni-app';
    import { index } from '@/stores/index.js';
	import { useComfirmPopup } from '@/hooks/utils.js';
	import { getFriendLink } from '@/api/index.js';
	
	const { popupShow,comfirmPopupRef,openPopup } = useComfirmPopup()
	
	const piniaIndex = index()
	onLoad(() => {
		
	})
</script>

<style lang="scss" scoped>
    
</style>
